Integrand size = 23, antiderivative size = 147 \[ \int x^4 (d+e x) \left (d^2-e^2 x^2\right )^p \, dx=-\frac {d^4 \left (d^2-e^2 x^2\right )^{1+p}}{2 e^5 (1+p)}+\frac {d^2 \left (d^2-e^2 x^2\right )^{2+p}}{e^5 (2+p)}-\frac {\left (d^2-e^2 x^2\right )^{3+p}}{2 e^5 (3+p)}+\frac {1}{5} d x^5 \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {5}{2},-p,\frac {7}{2},\frac {e^2 x^2}{d^2}\right ) \]
-1/2*d^4*(-e^2*x^2+d^2)^(p+1)/e^5/(p+1)+d^2*(-e^2*x^2+d^2)^(2+p)/e^5/(2+p) -1/2*(-e^2*x^2+d^2)^(3+p)/e^5/(3+p)+1/5*d*x^5*(-e^2*x^2+d^2)^p*hypergeom([ 5/2, -p],[7/2],e^2*x^2/d^2)/((1-e^2*x^2/d^2)^p)
Time = 0.21 (sec) , antiderivative size = 129, normalized size of antiderivative = 0.88 \[ \int x^4 (d+e x) \left (d^2-e^2 x^2\right )^p \, dx=\frac {1}{10} \left (d^2-e^2 x^2\right )^p \left (-\frac {5 \left (d^2-e^2 x^2\right ) \left (2 d^4+2 d^2 e^2 (1+p) x^2+e^4 \left (2+3 p+p^2\right ) x^4\right )}{e^5 (1+p) (2+p) (3+p)}+2 d x^5 \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {5}{2},-p,\frac {7}{2},\frac {e^2 x^2}{d^2}\right )\right ) \]
((d^2 - e^2*x^2)^p*((-5*(d^2 - e^2*x^2)*(2*d^4 + 2*d^2*e^2*(1 + p)*x^2 + e ^4*(2 + 3*p + p^2)*x^4))/(e^5*(1 + p)*(2 + p)*(3 + p)) + (2*d*x^5*Hypergeo metric2F1[5/2, -p, 7/2, (e^2*x^2)/d^2])/(1 - (e^2*x^2)/d^2)^p))/10
Time = 0.29 (sec) , antiderivative size = 150, normalized size of antiderivative = 1.02, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.261, Rules used = {542, 243, 53, 279, 278, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int x^4 (d+e x) \left (d^2-e^2 x^2\right )^p \, dx\) |
\(\Big \downarrow \) 542 |
\(\displaystyle e \int x^5 \left (d^2-e^2 x^2\right )^pdx+d \int x^4 \left (d^2-e^2 x^2\right )^pdx\) |
\(\Big \downarrow \) 243 |
\(\displaystyle d \int x^4 \left (d^2-e^2 x^2\right )^pdx+\frac {1}{2} e \int x^4 \left (d^2-e^2 x^2\right )^pdx^2\) |
\(\Big \downarrow \) 53 |
\(\displaystyle d \int x^4 \left (d^2-e^2 x^2\right )^pdx+\frac {1}{2} e \int \left (\frac {d^4 \left (d^2-e^2 x^2\right )^p}{e^4}-\frac {2 d^2 \left (d^2-e^2 x^2\right )^{p+1}}{e^4}+\frac {\left (d^2-e^2 x^2\right )^{p+2}}{e^4}\right )dx^2\) |
\(\Big \downarrow \) 279 |
\(\displaystyle d \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \int x^4 \left (1-\frac {e^2 x^2}{d^2}\right )^pdx+\frac {1}{2} e \int \left (\frac {d^4 \left (d^2-e^2 x^2\right )^p}{e^4}-\frac {2 d^2 \left (d^2-e^2 x^2\right )^{p+1}}{e^4}+\frac {\left (d^2-e^2 x^2\right )^{p+2}}{e^4}\right )dx^2\) |
\(\Big \downarrow \) 278 |
\(\displaystyle \frac {1}{2} e \int \left (\frac {d^4 \left (d^2-e^2 x^2\right )^p}{e^4}-\frac {2 d^2 \left (d^2-e^2 x^2\right )^{p+1}}{e^4}+\frac {\left (d^2-e^2 x^2\right )^{p+2}}{e^4}\right )dx^2+\frac {1}{5} d x^5 \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {5}{2},-p,\frac {7}{2},\frac {e^2 x^2}{d^2}\right )\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {1}{5} d x^5 \left (d^2-e^2 x^2\right )^p \left (1-\frac {e^2 x^2}{d^2}\right )^{-p} \operatorname {Hypergeometric2F1}\left (\frac {5}{2},-p,\frac {7}{2},\frac {e^2 x^2}{d^2}\right )+\frac {1}{2} e \left (\frac {2 d^2 \left (d^2-e^2 x^2\right )^{p+2}}{e^6 (p+2)}-\frac {\left (d^2-e^2 x^2\right )^{p+3}}{e^6 (p+3)}-\frac {d^4 \left (d^2-e^2 x^2\right )^{p+1}}{e^6 (p+1)}\right )\) |
(e*(-((d^4*(d^2 - e^2*x^2)^(1 + p))/(e^6*(1 + p))) + (2*d^2*(d^2 - e^2*x^2 )^(2 + p))/(e^6*(2 + p)) - (d^2 - e^2*x^2)^(3 + p)/(e^6*(3 + p))))/2 + (d* x^5*(d^2 - e^2*x^2)^p*Hypergeometric2F1[5/2, -p, 7/2, (e^2*x^2)/d^2])/(5*( 1 - (e^2*x^2)/d^2)^p)
3.3.41.3.1 Defintions of rubi rules used
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int [ExpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0] && LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[1/2 Subst[In t[x^((m - 1)/2)*(a + b*x)^p, x], x, x^2], x] /; FreeQ[{a, b, m, p}, x] && I ntegerQ[(m - 1)/2]
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^p*(( c*x)^(m + 1)/(c*(m + 1)))*Hypergeometric2F1[-p, (m + 1)/2, (m + 1)/2 + 1, ( -b)*(x^2/a)], x] /; FreeQ[{a, b, c, m, p}, x] && !IGtQ[p, 0] && (ILtQ[p, 0 ] || GtQ[a, 0])
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[a^IntP art[p]*((a + b*x^2)^FracPart[p]/(1 + b*(x^2/a))^FracPart[p]) Int[(c*x)^m* (1 + b*(x^2/a))^p, x], x] /; FreeQ[{a, b, c, m, p}, x] && !IGtQ[p, 0] && !(ILtQ[p, 0] || GtQ[a, 0])
Int[(x_)^(m_.)*((c_) + (d_.)*(x_))*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[c Int[x^m*(a + b*x^2)^p, x], x] + Simp[d Int[x^(m + 1)*(a + b*x^2 )^p, x], x] /; FreeQ[{a, b, c, d, p}, x] && IntegerQ[m] && !IntegerQ[2*p]
\[\int x^{4} \left (e x +d \right ) \left (-e^{2} x^{2}+d^{2}\right )^{p}d x\]
\[ \int x^4 (d+e x) \left (d^2-e^2 x^2\right )^p \, dx=\int { {\left (e x + d\right )} {\left (-e^{2} x^{2} + d^{2}\right )}^{p} x^{4} \,d x } \]
Leaf count of result is larger than twice the leaf count of optimal. 937 vs. \(2 (119) = 238\).
Time = 1.87 (sec) , antiderivative size = 972, normalized size of antiderivative = 6.61 \[ \int x^4 (d+e x) \left (d^2-e^2 x^2\right )^p \, dx=\frac {d d^{2 p} x^{5} {{}_{2}F_{1}\left (\begin {matrix} \frac {5}{2}, - p \\ \frac {7}{2} \end {matrix}\middle | {\frac {e^{2} x^{2} e^{2 i \pi }}{d^{2}}} \right )}}{5} + e \left (\begin {cases} \frac {x^{6} \left (d^{2}\right )^{p}}{6} & \text {for}\: e = 0 \\- \frac {2 d^{4} \log {\left (- \frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} - \frac {2 d^{4} \log {\left (\frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} - \frac {3 d^{4}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} + \frac {4 d^{2} e^{2} x^{2} \log {\left (- \frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} + \frac {4 d^{2} e^{2} x^{2} \log {\left (\frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} + \frac {4 d^{2} e^{2} x^{2}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} - \frac {2 e^{4} x^{4} \log {\left (- \frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} - \frac {2 e^{4} x^{4} \log {\left (\frac {d}{e} + x \right )}}{4 d^{4} e^{6} - 8 d^{2} e^{8} x^{2} + 4 e^{10} x^{4}} & \text {for}\: p = -3 \\- \frac {2 d^{4} \log {\left (- \frac {d}{e} + x \right )}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} - \frac {2 d^{4} \log {\left (\frac {d}{e} + x \right )}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} - \frac {2 d^{4}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} + \frac {2 d^{2} e^{2} x^{2} \log {\left (- \frac {d}{e} + x \right )}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} + \frac {2 d^{2} e^{2} x^{2} \log {\left (\frac {d}{e} + x \right )}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} + \frac {e^{4} x^{4}}{- 2 d^{2} e^{6} + 2 e^{8} x^{2}} & \text {for}\: p = -2 \\- \frac {d^{4} \log {\left (- \frac {d}{e} + x \right )}}{2 e^{6}} - \frac {d^{4} \log {\left (\frac {d}{e} + x \right )}}{2 e^{6}} - \frac {d^{2} x^{2}}{2 e^{4}} - \frac {x^{4}}{4 e^{2}} & \text {for}\: p = -1 \\- \frac {2 d^{6} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} - \frac {2 d^{4} e^{2} p x^{2} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} - \frac {d^{2} e^{4} p^{2} x^{4} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} - \frac {d^{2} e^{4} p x^{4} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} + \frac {e^{6} p^{2} x^{6} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} + \frac {3 e^{6} p x^{6} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} + \frac {2 e^{6} x^{6} \left (d^{2} - e^{2} x^{2}\right )^{p}}{2 e^{6} p^{3} + 12 e^{6} p^{2} + 22 e^{6} p + 12 e^{6}} & \text {otherwise} \end {cases}\right ) \]
d*d**(2*p)*x**5*hyper((5/2, -p), (7/2,), e**2*x**2*exp_polar(2*I*pi)/d**2) /5 + e*Piecewise((x**6*(d**2)**p/6, Eq(e, 0)), (-2*d**4*log(-d/e + x)/(4*d **4*e**6 - 8*d**2*e**8*x**2 + 4*e**10*x**4) - 2*d**4*log(d/e + x)/(4*d**4* e**6 - 8*d**2*e**8*x**2 + 4*e**10*x**4) - 3*d**4/(4*d**4*e**6 - 8*d**2*e** 8*x**2 + 4*e**10*x**4) + 4*d**2*e**2*x**2*log(-d/e + x)/(4*d**4*e**6 - 8*d **2*e**8*x**2 + 4*e**10*x**4) + 4*d**2*e**2*x**2*log(d/e + x)/(4*d**4*e**6 - 8*d**2*e**8*x**2 + 4*e**10*x**4) + 4*d**2*e**2*x**2/(4*d**4*e**6 - 8*d* *2*e**8*x**2 + 4*e**10*x**4) - 2*e**4*x**4*log(-d/e + x)/(4*d**4*e**6 - 8* d**2*e**8*x**2 + 4*e**10*x**4) - 2*e**4*x**4*log(d/e + x)/(4*d**4*e**6 - 8 *d**2*e**8*x**2 + 4*e**10*x**4), Eq(p, -3)), (-2*d**4*log(-d/e + x)/(-2*d* *2*e**6 + 2*e**8*x**2) - 2*d**4*log(d/e + x)/(-2*d**2*e**6 + 2*e**8*x**2) - 2*d**4/(-2*d**2*e**6 + 2*e**8*x**2) + 2*d**2*e**2*x**2*log(-d/e + x)/(-2 *d**2*e**6 + 2*e**8*x**2) + 2*d**2*e**2*x**2*log(d/e + x)/(-2*d**2*e**6 + 2*e**8*x**2) + e**4*x**4/(-2*d**2*e**6 + 2*e**8*x**2), Eq(p, -2)), (-d**4* log(-d/e + x)/(2*e**6) - d**4*log(d/e + x)/(2*e**6) - d**2*x**2/(2*e**4) - x**4/(4*e**2), Eq(p, -1)), (-2*d**6*(d**2 - e**2*x**2)**p/(2*e**6*p**3 + 12*e**6*p**2 + 22*e**6*p + 12*e**6) - 2*d**4*e**2*p*x**2*(d**2 - e**2*x**2 )**p/(2*e**6*p**3 + 12*e**6*p**2 + 22*e**6*p + 12*e**6) - d**2*e**4*p**2*x **4*(d**2 - e**2*x**2)**p/(2*e**6*p**3 + 12*e**6*p**2 + 22*e**6*p + 12*e** 6) - d**2*e**4*p*x**4*(d**2 - e**2*x**2)**p/(2*e**6*p**3 + 12*e**6*p**2...
\[ \int x^4 (d+e x) \left (d^2-e^2 x^2\right )^p \, dx=\int { {\left (e x + d\right )} {\left (-e^{2} x^{2} + d^{2}\right )}^{p} x^{4} \,d x } \]
\[ \int x^4 (d+e x) \left (d^2-e^2 x^2\right )^p \, dx=\int { {\left (e x + d\right )} {\left (-e^{2} x^{2} + d^{2}\right )}^{p} x^{4} \,d x } \]
Timed out. \[ \int x^4 (d+e x) \left (d^2-e^2 x^2\right )^p \, dx=\int x^4\,{\left (d^2-e^2\,x^2\right )}^p\,\left (d+e\,x\right ) \,d x \]